//
//  DetailSwipeView.h
//  PriceOnline
//
//  Created by Tai Le on 6/24/13.
//  Copyright (c) 2013 WorkLikeDance. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ControllersSwipeViewItem.h"
#import "BaseViewController.h"

@protocol ControllersSwipeViewDelegate;

@interface ControllersSwipeView : UIView
{
    ControllersSwipeViewItem *_tempView;
    ControllersSwipeViewItem *_currentView;
    
    CGFloat _preTouchX;
    CGFloat _preTouchY;
    UIView *_movingView;
    CGFloat _anchorTempLeft;
    CGFloat _anchorTempRight;
}

@property (nonatomic) NSInteger selectedIndex;

@property (nonatomic, weak) id<ControllersSwipeViewDelegate> delegate;

@property (nonatomic) CGRect originalFrame;

@end

@protocol ControllersSwipeViewDelegate <NSObject>

- (void)controllersSwipeViewDidSwipe:(ControllersSwipeView*)controllerSwipeView;
- (BaseViewController*)controllersSwipeView:(ControllersSwipeView*)controllerSwipeView viewControllerAtIndex:(NSInteger)index;
- (NSInteger)numberOfViewControllers;
@end